package com.chenyun.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenyun.boot.datasource.model.BaseEntity;
import com.chenyun.common.enums.SmsEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 短信渠道配置
 *
 * @author: Lonni
 * @date: 2022/12/27 0027 15:15
 */
@EqualsAndHashCode(callSuper = true)
@TableName("sys_sms_channel")
@Data
@NoArgsConstructor
public class SmsChannel extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -1156448060735192803L;

    @TableId(type = IdType.AUTO)
    private Long id;
    @NotBlank(message = "渠道名称不能为空!")
    private String channelName;
    /**
     * @see SmsEnum
     */
    @NotBlank(message = "渠道编码不能为空!")
    private String channelCode;


    @NotBlank(message = "签名不能为空!")
    private String signName;
    @NotBlank(message = "APPKEY不能为空!")
    private String appKey;
    @NotBlank(message = "Secret不能为空!")
    private String appSecret;
    //0 禁用 1:启用
    private Integer status;
    /**
     * 推送回调地址
     */
    private String callbackUrl;



}



